#基础镜像，包含了系统镜像、jre、环境变量、端口配置等
FROM openjdk:11.0-jre-buster
#配置容器的系统时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > etc/timezone
#拷贝jar包
COPY sentinel-dashboard-1.8.7.jar /app.jar
#入口
ENTRYPOINT ["java", "-Dserver.port=7080", "-Dcsp.sentinel.dashboard.server=localhost:7080", "-Dproject.name=sentinel-dashboard", "-jar", "/app.jar"]